package plus.xj17520.org.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import plus.xj17520.org.domain.OperLog;
import plus.xj17520.org.service.IOperLogService;
import plus.xj17520.org.mapper.OperLogMapper;
import plus.xj17520.base.result.JSONResult;

/**
 * @projectName: pethomeProject
 * @package: plus.xj17520.org.service.impl
 * @className: OperLogServiceImpl
 * @author: XiaoJue
 * @description: TODO
 *                          操作日志记录 服务实现类
 * @date: 2022/5/25 14:27
 * @version: 1.0
 */
@Service
public class OperLogServiceImpl implements IOperLogService {
    @Autowired
    OperLogMapper operLogMapper;
    @Override
    public JSONResult insert(OperLog operlog) {
        return JSONResult.success(operLogMapper.insert(operlog));
    }
}
